package com.example.parking.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.parking.entity.CarInfo;
import org.apache.ibatis.annotations.Select;

public interface CarInfoMapper extends BaseMapper<CarInfo> {
    @Select("SELECT * FROM car_info WHERE user_id = #{userId}")
    CarInfo getByLogin(Integer userId);
}
